



<script>
function ajx(url){
	var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	//console.info(xhr.onreadystatechange)
	xhr.onreadystatechange = function(){
		alert(xhr.readyState);
		if(xhr.readyState == 4){
			//alert(1);
		}
	}
	xhr.open("GET", url, false);
	xhr.send(null);
}
//ajx("http://www.baidu.com");
ajx("ajax.php")
</script>